package com.meilai.project.dto.administration.seal;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.meilai.project.dto.workflow.WorkFlowExtraSubmitDTO;
import com.meilai.project.entity.administration.seal.UseSealFlowAttachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class UseSealFlowDTO extends WorkFlowExtraSubmitDTO {
    @ApiModelProperty(value = "职务", example = "销售员", required = true)
    private String post;
    @NotNull(message = "印章类型不得为空")
    @ApiModelProperty(value = "印章类型id", example = "1", required = true)
    private Long seal_type_id;
    @ApiModelProperty(value = "印章类型名称")
    private String seal_type_name;
    @NotNull(message = "印章用途不得为空")
    @ApiModelProperty(value = "印章用途", required = true)
    private String purpose;
    @ApiModelProperty(value = "申请人id")
    private Long applicant_id;
    @ApiModelProperty(value = "申请人名称")
    private String applicant_name;
    @ApiModelProperty(value = "申请人部门ID")
    private Long applicant_dept_id;
    @ApiModelProperty(value = "申请人部门名称")
    private String applicant_dept_name;
    @ApiModelProperty(value = "公司ID")
    private Long company_id;

    @ApiModelProperty("附件详情")
    private List<UseSealFlowAttachment> useSealFlowAttachmentList;
}
